package controllers;

import play.mvc.Controller;
import play.mvc.Result;
import views.html.*;

public class Application extends Controller {

    public static Result index() {
        return ok(index.render("test"));
    }

    public static Result playBadugi(String login) {
        if(login==null || login.trim().equals("")) {
            flash("error", "invalid login");
            
        }
        return ok(badugi.render(login));
    }
}
